const BaseRest = require('../rest.js');
const axioss = require('../../utils/axios-stock')

module.exports = class extends BaseRest {
  async getAction() {
    if(this.id === 'top_news'){
      let res = await axioss.get('/news')
      // console.log('data', res.data)
      this.ctx.body = {
        code: 0,
        data: res.data
      }
      return
    }

  }
};
